<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\Goods;
use Faker\Factory;


$factory->define(Goods::class, function () {
    $faker = Factory::create('zh_CN');
    return [
        'goods_name'      => $faker->name.$faker->name.'-商品',
        'goods_code'      => \Str::random(10),
        'price'           => random_int(100,3000),
        'created_at'      => $faker->dateTimeBetween('-3 year', '-1 year'),// 时间在 三年到一年 之间
        'updated_at'      => $faker->dateTimeThisYear,// 时间在
    ];
});
